/**
 * This class contains generated code from the LWUIT resource editor, DO NOT MODIFY!
 * This class is designed for subclassing that way the code generator can overwrite it
 * anytime without erasing your changes which should exist in a subclass!
 * For details about this file and how it works please read this blog post:
 * http://lwuit.blogspot.com/2010/10/ui-builder-class-how-to-actually-use.html
*/
package generated;

import com.sun.lwuit.*;
import com.sun.lwuit.util.*;
import com.sun.lwuit.plaf.*;
import com.sun.lwuit.events.*;

public abstract class StateMachineBase extends UIBuilder {
    /**
     * this method should be used to initialize variables instead of
     * the constructor/class scope to avoid race conditions
     */
    protected void initVars() {}

    public StateMachineBase(Resources res, String resPath, boolean loadTheme) {
        startApp(res, resPath, loadTheme);
    }

    public Container startApp(Resources res, String resPath, boolean loadTheme) {
        initVars();
        if(loadTheme) {
            if(res == null) {
                try {
                    res = Resources.open(resPath);
                } catch(java.io.IOException err) { err.printStackTrace(); }
            }
            initTheme(res);
        }
        if(res != null) {
            setResourceFilePath(resPath);
            setResourceFile(res);
            return showForm("Main", null);
        } else {
            Form f = (Form)createContainer(resPath, "Main");
            beforeShow(f);
            f.show();
            postShow(f);
            return f;
        }
    }

    public Container createWidget(Resources res, String resPath, boolean loadTheme) {
        initVars();
        if(loadTheme) {
            if(res == null) {
                try {
                    res = Resources.open(resPath);
                } catch(java.io.IOException err) { err.printStackTrace(); }
            }
            initTheme(res);
        }
        return createContainer(resPath, "Main");
    }

    protected void initTheme(Resources res) {
            UIManager.getInstance().setThemeProps(res.getTheme(res.getThemeResourceNames()[0]));
    }

    public StateMachineBase() {
    }

    public StateMachineBase(String resPath) {
        this(null, resPath, true);
    }

    public StateMachineBase(Resources res) {
        this(res, null, true);
    }

    public StateMachineBase(String resPath, boolean loadTheme) {
        this(null, resPath, loadTheme);
    }

    public StateMachineBase(Resources res, boolean loadTheme) {
        this(res, null, loadTheme);
    }

    public com.sun.lwuit.Container findContainer4(Container root) {
        return (com.sun.lwuit.Container)findByName("Container4", root);
    }

    public com.sun.lwuit.Container findContainer3(Container root) {
        return (com.sun.lwuit.Container)findByName("Container3", root);
    }

    public com.sun.lwuit.Container findContainer2(Container root) {
        return (com.sun.lwuit.Container)findByName("Container2", root);
    }

    public com.sun.lwuit.Button findExit(Container root) {
        return (com.sun.lwuit.Button)findByName("Exit", root);
    }

    public com.sun.lwuit.Container findContainer1(Container root) {
        return (com.sun.lwuit.Container)findByName("Container1", root);
    }

    public com.sun.lwuit.Button findDoneButton(Container root) {
        return (com.sun.lwuit.Button)findByName("DoneButton", root);
    }

    public com.sun.lwuit.Container findContainer5(Container root) {
        return (com.sun.lwuit.Container)findByName("Container5", root);
    }

    public com.sun.lwuit.Container findPickUpCont(Container root) {
        return (com.sun.lwuit.Container)findByName("PickUpCont", root);
    }

    public com.sun.lwuit.Button findEditDropOff(Container root) {
        return (com.sun.lwuit.Button)findByName("EditDropOff", root);
    }

    public com.sun.lwuit.Container findDestinationInfoCont(Container root) {
        return (com.sun.lwuit.Container)findByName("DestinationInfoCont", root);
    }

    public com.sun.lwuit.Button findButton(Container root) {
        return (com.sun.lwuit.Button)findByName("Button", root);
    }

    public com.sun.lwuit.Label findLabel1(Container root) {
        return (com.sun.lwuit.Label)findByName("Label1", root);
    }

    public com.sun.lwuit.Form findReportProblem(Container root) {
        return (com.sun.lwuit.Form)findByName("ReportProblem", root);
    }

    public com.sun.lwuit.Label findLabel2(Container root) {
        return (com.sun.lwuit.Label)findByName("Label2", root);
    }

    public com.sun.lwuit.Container findContainer31(Container root) {
        return (com.sun.lwuit.Container)findByName("Container31", root);
    }

    public com.sun.lwuit.Button findEditPass(Container root) {
        return (com.sun.lwuit.Button)findByName("EditPass", root);
    }

    public com.sun.lwuit.Label findRideInfo2(Container root) {
        return (com.sun.lwuit.Label)findByName("RideInfo2", root);
    }

    public com.sun.lwuit.Label findRideInfo1(Container root) {
        return (com.sun.lwuit.Label)findByName("RideInfo1", root);
    }

    public com.sun.lwuit.Label findSystemMessage(Container root) {
        return (com.sun.lwuit.Label)findByName("SystemMessage", root);
    }

    public com.sun.lwuit.Label findVehicleNum(Container root) {
        return (com.sun.lwuit.Label)findByName("VehicleNum", root);
    }

    public com.sun.lwuit.Label findSelectPickText(Container root) {
        return (com.sun.lwuit.Label)findByName("SelectPickText", root);
    }

    public com.sun.lwuit.Label findDestInfo1(Container root) {
        return (com.sun.lwuit.Label)findByName("DestInfo1", root);
    }

    public com.sun.lwuit.Dialog findPassengers(Container root) {
        return (com.sun.lwuit.Dialog)findByName("Passengers", root);
    }

    public com.sun.lwuit.Label findDestInfo2(Container root) {
        return (com.sun.lwuit.Label)findByName("DestInfo2", root);
    }

    public com.sun.lwuit.Dialog findPickUp(Container root) {
        return (com.sun.lwuit.Dialog)findByName("PickUp", root);
    }

    public com.sun.lwuit.Label findNumPass(Container root) {
        return (com.sun.lwuit.Label)findByName("NumPass", root);
    }

    public com.sun.lwuit.Container findOptonsRendererSel(Container root) {
        return (com.sun.lwuit.Container)findByName("OptonsRendererSel", root);
    }

    public com.sun.lwuit.Button findRetryButton(Container root) {
        return (com.sun.lwuit.Button)findByName("RetryButton", root);
    }

    public com.sun.lwuit.Container findTimeDropOff(Container root) {
        return (com.sun.lwuit.Container)findByName("TimeDropOff", root);
    }

    public com.sun.lwuit.List findPickUpList(Container root) {
        return (com.sun.lwuit.List)findByName("PickUpList", root);
    }

    public com.sun.lwuit.Button findReadyButton(Container root) {
        return (com.sun.lwuit.Button)findByName("ReadyButton", root);
    }

    public com.sun.lwuit.Label findPickUpLabel(Container root) {
        return (com.sun.lwuit.Label)findByName("PickUpLabel", root);
    }

    public com.sun.lwuit.Label findCountdownLabel(Container root) {
        return (com.sun.lwuit.Label)findByName("CountdownLabel", root);
    }

    public com.sun.lwuit.Container findLogoContainer(Container root) {
        return (com.sun.lwuit.Container)findByName("LogoContainer", root);
    }

    public com.sun.lwuit.Button findPickUpDone(Container root) {
        return (com.sun.lwuit.Button)findByName("PickUpDone", root);
    }

    public com.sun.lwuit.Dialog findDropOff(Container root) {
        return (com.sun.lwuit.Dialog)findByName("DropOff", root);
    }

    public com.sun.lwuit.Button findDropOffDone(Container root) {
        return (com.sun.lwuit.Button)findByName("DropOffDone", root);
    }

    public com.sun.lwuit.Label findStationNum(Container root) {
        return (com.sun.lwuit.Label)findByName("StationNum", root);
    }

    public com.sun.lwuit.Label findDropOffLabel(Container root) {
        return (com.sun.lwuit.Label)findByName("DropOffLabel", root);
    }

    public com.sun.lwuit.Form findTransporting(Container root) {
        return (com.sun.lwuit.Form)findByName("Transporting", root);
    }

    public com.sun.lwuit.Label findLogo(Container root) {
        return (com.sun.lwuit.Label)findByName("Logo", root);
    }

    public com.sun.lwuit.Container findPassCont(Container root) {
        return (com.sun.lwuit.Container)findByName("PassCont", root);
    }

    public com.sun.lwuit.Label findCountdownTimer(Container root) {
        return (com.sun.lwuit.Label)findByName("CountdownTimer", root);
    }

    public com.sun.lwuit.TextArea findTextArea(Container root) {
        return (com.sun.lwuit.TextArea)findByName("TextArea", root);
    }

    public com.sun.lwuit.Container findMainContent(Container root) {
        return (com.sun.lwuit.Container)findByName("MainContent", root);
    }

    public com.sun.lwuit.Label findPassText(Container root) {
        return (com.sun.lwuit.Label)findByName("PassText", root);
    }

    public com.sun.lwuit.Form findMain(Container root) {
        return (com.sun.lwuit.Form)findByName("Main", root);
    }

    public com.sun.lwuit.Button findEditPickUp(Container root) {
        return (com.sun.lwuit.Button)findByName("EditPickUp", root);
    }

    public com.sun.lwuit.Container findOptonsRendererUn(Container root) {
        return (com.sun.lwuit.Container)findByName("OptonsRendererUn", root);
    }

    public com.sun.lwuit.ComboBox findComboBox(Container root) {
        return (com.sun.lwuit.ComboBox)findByName("ComboBox", root);
    }

    public com.sun.lwuit.Label findSentInfo(Container root) {
        return (com.sun.lwuit.Label)findByName("SentInfo", root);
    }

    public com.sun.lwuit.Button findReqRide(Container root) {
        return (com.sun.lwuit.Button)findByName("ReqRide", root);
    }

    public com.sun.lwuit.CheckBox findCheckBox(Container root) {
        return (com.sun.lwuit.CheckBox)findByName("CheckBox", root);
    }

    public com.sun.lwuit.Form findRideOverview(Container root) {
        return (com.sun.lwuit.Form)findByName("RideOverview", root);
    }

    public com.sun.lwuit.List findPassengerList(Container root) {
        return (com.sun.lwuit.List)findByName("PassengerList", root);
    }

    public com.sun.lwuit.Container findContainer(Container root) {
        return (com.sun.lwuit.Container)findByName("Container", root);
    }

    public com.sun.lwuit.Button findSendButton(Container root) {
        return (com.sun.lwuit.Button)findByName("SendButton", root);
    }

    public com.sun.lwuit.Label findSystemStatus(Container root) {
        return (com.sun.lwuit.Label)findByName("SystemStatus", root);
    }

    public com.sun.lwuit.Button findStopButton(Container root) {
        return (com.sun.lwuit.Button)findByName("StopButton", root);
    }

    public com.sun.lwuit.Label findHintLabel(Container root) {
        return (com.sun.lwuit.Label)findByName("HintLabel", root);
    }

    public com.sun.lwuit.Container findDropOffOptions(Container root) {
        return (com.sun.lwuit.Container)findByName("DropOffOptions", root);
    }

    public com.sun.lwuit.Button findReportProb(Container root) {
        return (com.sun.lwuit.Button)findByName("ReportProb", root);
    }

    public com.sun.lwuit.Container findTopButtons(Container root) {
        return (com.sun.lwuit.Container)findByName("TopButtons", root);
    }

    public com.sun.lwuit.Dialog findRequesting(Container root) {
        return (com.sun.lwuit.Dialog)findByName("Requesting", root);
    }

    public com.sun.lwuit.Container findMainButtonCont(Container root) {
        return (com.sun.lwuit.Container)findByName("MainButtonCont", root);
    }

    public com.sun.lwuit.List findDropOffList(Container root) {
        return (com.sun.lwuit.List)findByName("DropOffList", root);
    }

    public com.sun.lwuit.Container findOptionsContainer(Container root) {
        return (com.sun.lwuit.Container)findByName("OptionsContainer", root);
    }

    public com.sun.lwuit.Button findPassDone(Container root) {
        return (com.sun.lwuit.Button)findByName("PassDone", root);
    }

    public com.sun.lwuit.Container findPickUpOptions(Container root) {
        return (com.sun.lwuit.Container)findByName("PickUpOptions", root);
    }

    public com.sun.lwuit.Container findTimeToPickUp(Container root) {
        return (com.sun.lwuit.Container)findByName("TimeToPickUp", root);
    }

    public com.sun.lwuit.Label findLabel(Container root) {
        return (com.sun.lwuit.Label)findByName("Label", root);
    }

    public com.sun.lwuit.Container findDropOffCont(Container root) {
        return (com.sun.lwuit.Container)findByName("DropOffCont", root);
    }

    public com.sun.lwuit.Container findVehicleInfoCont(Container root) {
        return (com.sun.lwuit.Container)findByName("VehicleInfoCont", root);
    }

    public com.sun.lwuit.Container findPassOptions(Container root) {
        return (com.sun.lwuit.Container)findByName("PassOptions", root);
    }

    public static final int COMMAND_DropOffDone = 9;
    public static final int COMMAND_MainReportProblem = 17;
    public static final int COMMAND_RideOverviewIMReady = 26;
    public static final int COMMAND_TransportingStopVehicle = 19;
    public static final int COMMAND_MainExit = 12;
    public static final int COMMAND_ReportProblemSend = 28;
    public static final int COMMAND_TransportingDone = 27;
    public static final int COMMAND_MainRequestRide = 13;
    public static final int COMMAND_MainEdit = 8;
    public static final int COMMAND_RideOverviewCancelRequest = 18;
    public static final int COMMAND_PickUpDone = 11;
    public static final int COMMAND_PassengersDone = 10;
    public static final int COMMAND_MainRetry = 29;

    protected boolean onDropOffDone() {
        return false;
    }

    protected boolean onMainReportProblem() {
        return false;
    }

    protected boolean onRideOverviewIMReady() {
        return false;
    }

    protected boolean onTransportingStopVehicle() {
        return false;
    }

    protected boolean onMainExit() {
        return false;
    }

    protected boolean onReportProblemSend() {
        return false;
    }

    protected boolean onTransportingDone() {
        return false;
    }

    protected boolean onMainRequestRide() {
        return false;
    }

    protected boolean onMainEdit() {
        return false;
    }

    protected boolean onRideOverviewCancelRequest() {
        return false;
    }

    protected boolean onPickUpDone() {
        return false;
    }

    protected boolean onPassengersDone() {
        return false;
    }

    protected boolean onMainRetry() {
        return false;
    }

    protected void processCommand(ActionEvent ev, Command cmd) {
        switch(cmd.getId()) {
            case COMMAND_DropOffDone:
                if(onDropOffDone()) {
                    ev.consume();
                }
                return;

            case COMMAND_MainReportProblem:
                if(onMainReportProblem()) {
                    ev.consume();
                }
                return;

            case COMMAND_RideOverviewIMReady:
                if(onRideOverviewIMReady()) {
                    ev.consume();
                }
                return;

            case COMMAND_TransportingStopVehicle:
                if(onTransportingStopVehicle()) {
                    ev.consume();
                }
                return;

            case COMMAND_MainExit:
                if(onMainExit()) {
                    ev.consume();
                }
                return;

            case COMMAND_ReportProblemSend:
                if(onReportProblemSend()) {
                    ev.consume();
                }
                return;

            case COMMAND_TransportingDone:
                if(onTransportingDone()) {
                    ev.consume();
                }
                return;

            case COMMAND_MainRequestRide:
                if(onMainRequestRide()) {
                    ev.consume();
                }
                return;

            case COMMAND_MainEdit:
                if(onMainEdit()) {
                    ev.consume();
                }
                return;

            case COMMAND_RideOverviewCancelRequest:
                if(onRideOverviewCancelRequest()) {
                    ev.consume();
                }
                return;

            case COMMAND_PickUpDone:
                if(onPickUpDone()) {
                    ev.consume();
                }
                return;

            case COMMAND_PassengersDone:
                if(onPassengersDone()) {
                    ev.consume();
                }
                return;

            case COMMAND_MainRetry:
                if(onMainRetry()) {
                    ev.consume();
                }
                return;

        }
    }

    protected void exitForm(Form f) {
        if("DropOff".equals(f.getName())) {
            exitDropOff(f);
            return;
        }

        if("RideOverview".equals(f.getName())) {
            exitRideOverview(f);
            return;
        }

        if("Requesting".equals(f.getName())) {
            exitRequesting(f);
            return;
        }

        if("Passengers".equals(f.getName())) {
            exitPassengers(f);
            return;
        }

        if("OptonsRendererUn".equals(f.getName())) {
            exitOptonsRendererUn(f);
            return;
        }

        if("ReportProblem".equals(f.getName())) {
            exitReportProblem(f);
            return;
        }

        if("OptonsRendererSel".equals(f.getName())) {
            exitOptonsRendererSel(f);
            return;
        }

        if("PickUp".equals(f.getName())) {
            exitPickUp(f);
            return;
        }

        if("Transporting".equals(f.getName())) {
            exitTransporting(f);
            return;
        }

        if("Main".equals(f.getName())) {
            exitMain(f);
            return;
        }

    }


    protected void exitDropOff(Form f) {
    }


    protected void exitRideOverview(Form f) {
    }


    protected void exitRequesting(Form f) {
    }


    protected void exitPassengers(Form f) {
    }


    protected void exitOptonsRendererUn(Form f) {
    }


    protected void exitReportProblem(Form f) {
    }


    protected void exitOptonsRendererSel(Form f) {
    }


    protected void exitPickUp(Form f) {
    }


    protected void exitTransporting(Form f) {
    }


    protected void exitMain(Form f) {
    }

    protected void beforeShow(Form f) {
        if("DropOff".equals(f.getName())) {
            beforeDropOff(f);
            return;
        }

        if("RideOverview".equals(f.getName())) {
            beforeRideOverview(f);
            return;
        }

        if("Requesting".equals(f.getName())) {
            beforeRequesting(f);
            return;
        }

        if("Passengers".equals(f.getName())) {
            beforePassengers(f);
            return;
        }

        if("OptonsRendererUn".equals(f.getName())) {
            beforeOptonsRendererUn(f);
            return;
        }

        if("ReportProblem".equals(f.getName())) {
            beforeReportProblem(f);
            return;
        }

        if("OptonsRendererSel".equals(f.getName())) {
            beforeOptonsRendererSel(f);
            return;
        }

        if("PickUp".equals(f.getName())) {
            beforePickUp(f);
            return;
        }

        if("Transporting".equals(f.getName())) {
            beforeTransporting(f);
            return;
        }

        if("Main".equals(f.getName())) {
            beforeMain(f);
            return;
        }

    }


    protected void beforeDropOff(Form f) {
    }


    protected void beforeRideOverview(Form f) {
    }


    protected void beforeRequesting(Form f) {
    }


    protected void beforePassengers(Form f) {
    }


    protected void beforeOptonsRendererUn(Form f) {
    }


    protected void beforeReportProblem(Form f) {
    }


    protected void beforeOptonsRendererSel(Form f) {
    }


    protected void beforePickUp(Form f) {
    }


    protected void beforeTransporting(Form f) {
    }


    protected void beforeMain(Form f) {
    }

    protected void beforeShowContainer(Container c) {
        if("DropOff".equals(c.getName())) {
            beforeContainerDropOff(c);
            return;
        }

        if("RideOverview".equals(c.getName())) {
            beforeContainerRideOverview(c);
            return;
        }

        if("Requesting".equals(c.getName())) {
            beforeContainerRequesting(c);
            return;
        }

        if("Passengers".equals(c.getName())) {
            beforeContainerPassengers(c);
            return;
        }

        if("OptonsRendererUn".equals(c.getName())) {
            beforeContainerOptonsRendererUn(c);
            return;
        }

        if("ReportProblem".equals(c.getName())) {
            beforeContainerReportProblem(c);
            return;
        }

        if("OptonsRendererSel".equals(c.getName())) {
            beforeContainerOptonsRendererSel(c);
            return;
        }

        if("PickUp".equals(c.getName())) {
            beforeContainerPickUp(c);
            return;
        }

        if("Transporting".equals(c.getName())) {
            beforeContainerTransporting(c);
            return;
        }

        if("Main".equals(c.getName())) {
            beforeContainerMain(c);
            return;
        }

    }


    protected void beforeContainerDropOff(Container c) {
    }


    protected void beforeContainerRideOverview(Container c) {
    }


    protected void beforeContainerRequesting(Container c) {
    }


    protected void beforeContainerPassengers(Container c) {
    }


    protected void beforeContainerOptonsRendererUn(Container c) {
    }


    protected void beforeContainerReportProblem(Container c) {
    }


    protected void beforeContainerOptonsRendererSel(Container c) {
    }


    protected void beforeContainerPickUp(Container c) {
    }


    protected void beforeContainerTransporting(Container c) {
    }


    protected void beforeContainerMain(Container c) {
    }

    protected void postShow(Form f) {
        if("DropOff".equals(f.getName())) {
            postDropOff(f);
            return;
        }

        if("RideOverview".equals(f.getName())) {
            postRideOverview(f);
            return;
        }

        if("Requesting".equals(f.getName())) {
            postRequesting(f);
            return;
        }

        if("Passengers".equals(f.getName())) {
            postPassengers(f);
            return;
        }

        if("OptonsRendererUn".equals(f.getName())) {
            postOptonsRendererUn(f);
            return;
        }

        if("ReportProblem".equals(f.getName())) {
            postReportProblem(f);
            return;
        }

        if("OptonsRendererSel".equals(f.getName())) {
            postOptonsRendererSel(f);
            return;
        }

        if("PickUp".equals(f.getName())) {
            postPickUp(f);
            return;
        }

        if("Transporting".equals(f.getName())) {
            postTransporting(f);
            return;
        }

        if("Main".equals(f.getName())) {
            postMain(f);
            return;
        }

    }


    protected void postDropOff(Form f) {
    }


    protected void postRideOverview(Form f) {
    }


    protected void postRequesting(Form f) {
    }


    protected void postPassengers(Form f) {
    }


    protected void postOptonsRendererUn(Form f) {
    }


    protected void postReportProblem(Form f) {
    }


    protected void postOptonsRendererSel(Form f) {
    }


    protected void postPickUp(Form f) {
    }


    protected void postTransporting(Form f) {
    }


    protected void postMain(Form f) {
    }

    protected void postShowContainer(Container c) {
        if("DropOff".equals(c.getName())) {
            postContainerDropOff(c);
            return;
        }

        if("RideOverview".equals(c.getName())) {
            postContainerRideOverview(c);
            return;
        }

        if("Requesting".equals(c.getName())) {
            postContainerRequesting(c);
            return;
        }

        if("Passengers".equals(c.getName())) {
            postContainerPassengers(c);
            return;
        }

        if("OptonsRendererUn".equals(c.getName())) {
            postContainerOptonsRendererUn(c);
            return;
        }

        if("ReportProblem".equals(c.getName())) {
            postContainerReportProblem(c);
            return;
        }

        if("OptonsRendererSel".equals(c.getName())) {
            postContainerOptonsRendererSel(c);
            return;
        }

        if("PickUp".equals(c.getName())) {
            postContainerPickUp(c);
            return;
        }

        if("Transporting".equals(c.getName())) {
            postContainerTransporting(c);
            return;
        }

        if("Main".equals(c.getName())) {
            postContainerMain(c);
            return;
        }

    }


    protected void postContainerDropOff(Container c) {
    }


    protected void postContainerRideOverview(Container c) {
    }


    protected void postContainerRequesting(Container c) {
    }


    protected void postContainerPassengers(Container c) {
    }


    protected void postContainerOptonsRendererUn(Container c) {
    }


    protected void postContainerReportProblem(Container c) {
    }


    protected void postContainerOptonsRendererSel(Container c) {
    }


    protected void postContainerPickUp(Container c) {
    }


    protected void postContainerTransporting(Container c) {
    }


    protected void postContainerMain(Container c) {
    }

    protected void onCreateRoot(String rootName) {
        if("DropOff".equals(rootName)) {
            onCreateDropOff();
            return;
        }

        if("RideOverview".equals(rootName)) {
            onCreateRideOverview();
            return;
        }

        if("Requesting".equals(rootName)) {
            onCreateRequesting();
            return;
        }

        if("Passengers".equals(rootName)) {
            onCreatePassengers();
            return;
        }

        if("OptonsRendererUn".equals(rootName)) {
            onCreateOptonsRendererUn();
            return;
        }

        if("ReportProblem".equals(rootName)) {
            onCreateReportProblem();
            return;
        }

        if("OptonsRendererSel".equals(rootName)) {
            onCreateOptonsRendererSel();
            return;
        }

        if("PickUp".equals(rootName)) {
            onCreatePickUp();
            return;
        }

        if("Transporting".equals(rootName)) {
            onCreateTransporting();
            return;
        }

        if("Main".equals(rootName)) {
            onCreateMain();
            return;
        }

    }


    protected void onCreateDropOff() {
    }


    protected void onCreateRideOverview() {
    }


    protected void onCreateRequesting() {
    }


    protected void onCreatePassengers() {
    }


    protected void onCreateOptonsRendererUn() {
    }


    protected void onCreateReportProblem() {
    }


    protected void onCreateOptonsRendererSel() {
    }


    protected void onCreatePickUp() {
    }


    protected void onCreateTransporting() {
    }


    protected void onCreateMain() {
    }

    protected boolean setListModel(List cmp) {
        String listName = cmp.getName();
        if("PickUpList".equals(listName)) {
            return initListModelPickUpList(cmp);
        }
        if("ComboBox".equals(listName)) {
            return initListModelComboBox(cmp);
        }
        if("PassengerList".equals(listName)) {
            return initListModelPassengerList(cmp);
        }
        if("DropOffList".equals(listName)) {
            return initListModelDropOffList(cmp);
        }
        return super.setListModel(cmp);
    }

    protected boolean initListModelPickUpList(List cmp) {
        return false;
    }

    protected boolean initListModelComboBox(List cmp) {
        return false;
    }

    protected boolean initListModelPassengerList(List cmp) {
        return false;
    }

    protected boolean initListModelDropOffList(List cmp) {
        return false;
    }

    protected void handleComponentAction(Component c, ActionEvent event) {
        Container rootContainerAncestor = getRootAncestor(c);
        if(rootContainerAncestor == null) return;
        String rootContainerName = rootContainerAncestor.getName();
        if(rootContainerName == null) return;
        if(rootContainerName.equals("DropOff")) {
            if("DropOffDone".equals(c.getName())) {
                onDropOff_DropOffDoneAction(c, event);
                return;
            }
            if("DropOffList".equals(c.getName())) {
                onDropOff_DropOffListAction(c, event);
                return;
            }
        }
        if(rootContainerName.equals("RideOverview")) {
            if("ReadyButton".equals(c.getName())) {
                onRideOverview_ReadyButtonAction(c, event);
                return;
            }
            if("Button".equals(c.getName())) {
                onRideOverview_ButtonAction(c, event);
                return;
            }
        }
        if(rootContainerName.equals("Requesting")) {
            if("Exit".equals(c.getName())) {
                onRequesting_ExitAction(c, event);
                return;
            }
        }
        if(rootContainerName.equals("Passengers")) {
            if("PassDone".equals(c.getName())) {
                onPassengers_PassDoneAction(c, event);
                return;
            }
            if("PassengerList".equals(c.getName())) {
                onPassengers_PassengerListAction(c, event);
                return;
            }
        }
        if(rootContainerName.equals("ReportProblem")) {
            if("ComboBox".equals(c.getName())) {
                onReportProblem_ComboBoxAction(c, event);
                return;
            }
            if("TextArea".equals(c.getName())) {
                onReportProblem_TextAreaAction(c, event);
                return;
            }
            if("CheckBox".equals(c.getName())) {
                onReportProblem_CheckBoxAction(c, event);
                return;
            }
            if("SendButton".equals(c.getName())) {
                onReportProblem_SendButtonAction(c, event);
                return;
            }
            if("Exit".equals(c.getName())) {
                onReportProblem_ExitAction(c, event);
                return;
            }
        }
        if(rootContainerName.equals("PickUp")) {
            if("PickUpDone".equals(c.getName())) {
                onPickUp_PickUpDoneAction(c, event);
                return;
            }
            if("PickUpList".equals(c.getName())) {
                onPickUp_PickUpListAction(c, event);
                return;
            }
        }
        if(rootContainerName.equals("Transporting")) {
            if("DoneButton".equals(c.getName())) {
                onTransporting_DoneButtonAction(c, event);
                return;
            }
            if("StopButton".equals(c.getName())) {
                onTransporting_StopButtonAction(c, event);
                return;
            }
        }
        if(rootContainerName.equals("Main")) {
            if("RetryButton".equals(c.getName())) {
                onMain_RetryButtonAction(c, event);
                return;
            }
            if("EditPass".equals(c.getName())) {
                onMain_EditPassAction(c, event);
                return;
            }
            if("EditPickUp".equals(c.getName())) {
                onMain_EditPickUpAction(c, event);
                return;
            }
            if("EditDropOff".equals(c.getName())) {
                onMain_EditDropOffAction(c, event);
                return;
            }
            if("ReqRide".equals(c.getName())) {
                onMain_ReqRideAction(c, event);
                return;
            }
            if("ReportProb".equals(c.getName())) {
                onMain_ReportProbAction(c, event);
                return;
            }
            if("Exit".equals(c.getName())) {
                onMain_ExitAction(c, event);
                return;
            }
        }
    }

      protected void onDropOff_DropOffDoneAction(Component c, ActionEvent event) {
      }

      protected void onDropOff_DropOffListAction(Component c, ActionEvent event) {
      }

      protected void onRideOverview_ReadyButtonAction(Component c, ActionEvent event) {
      }

      protected void onRideOverview_ButtonAction(Component c, ActionEvent event) {
      }

      protected void onRequesting_ExitAction(Component c, ActionEvent event) {
      }

      protected void onPassengers_PassDoneAction(Component c, ActionEvent event) {
      }

      protected void onPassengers_PassengerListAction(Component c, ActionEvent event) {
      }

      protected void onReportProblem_ComboBoxAction(Component c, ActionEvent event) {
      }

      protected void onReportProblem_TextAreaAction(Component c, ActionEvent event) {
      }

      protected void onReportProblem_CheckBoxAction(Component c, ActionEvent event) {
      }

      protected void onReportProblem_SendButtonAction(Component c, ActionEvent event) {
      }

      protected void onReportProblem_ExitAction(Component c, ActionEvent event) {
      }

      protected void onPickUp_PickUpDoneAction(Component c, ActionEvent event) {
      }

      protected void onPickUp_PickUpListAction(Component c, ActionEvent event) {
      }

      protected void onTransporting_DoneButtonAction(Component c, ActionEvent event) {
      }

      protected void onTransporting_StopButtonAction(Component c, ActionEvent event) {
      }

      protected void onMain_RetryButtonAction(Component c, ActionEvent event) {
      }

      protected void onMain_EditPassAction(Component c, ActionEvent event) {
      }

      protected void onMain_EditPickUpAction(Component c, ActionEvent event) {
      }

      protected void onMain_EditDropOffAction(Component c, ActionEvent event) {
      }

      protected void onMain_ReqRideAction(Component c, ActionEvent event) {
      }

      protected void onMain_ReportProbAction(Component c, ActionEvent event) {
      }

      protected void onMain_ExitAction(Component c, ActionEvent event) {
      }

}
